package com.ruoyi.system;


import com.ruoyi.ora.netty.server.ChannelTcpServerThread;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

//@Component
//@Order(12)
public class AudioNettyApplication implements ApplicationRunner {

    @Value("${server.netty.port}")
    private int port;

    @Async
    public void run(ApplicationArguments args) {

        new ChannelTcpServerThread(port).start();

    }

}
